package com.example.nbug.component;

import lombok.Getter;

/**
 * @author: 杰
 * @date: 2024/7/21 10:37
 */

@Getter
public enum ErrorCode {
    PARAMS_ERROR(6001, "请求参数为空"),
    NULL_ERROR(6002, "请求数据为空"),
    NOT_LOGIN(6010, "未登录"),
    NO_AUTH(6011, "无权限");

    private final int code;

    private final String message;

    ErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
